home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / initrd.lz / initrd / scripts / casper-bottom / 01integrity_check next >
Encoding:
Text File  |  2009-10-28  |  297 b   |  23 lines

  1. #!/bin/sh
  2.  
  3. PREREQ=""
  4.  
  5. prereqs()
  6. {
  7.        echo "$PREREQ"
  8. }
  9.  
  10. case $1 in
  11. # get pre-requisites
  12. prereqs)
  13.        prereqs
  14.        exit 0
  15.        ;;
  16. esac
  17.  
  18. if grep -q integrity-check /proc/cmdline; then
  19.     casper-md5check /cdrom /cdrom/md5sum.txt < /dev/tty8 > /dev/tty8
  20.     reboot
  21.     while :; do sleep 60; done
  22. fi
  23.